﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CronMaker.aspx.cs" Inherits="ui_Quartz_CronMaker" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>QuartzNet任务管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel ID="pannelcron" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        Title="Cron触发器表达式" AutoWidth="true">
        <Items>
            <ext:TabStrip runat="server" ActiveTabIndex="0" Height="120px" TabPosition="Top"
                ShowBorder="true">
                <Tabs>
                    <ext:Tab Title="按分钟" runat="server" EnableBackgroundColor="true" BodyPadding="5px">
                        <Items>
                            <ext:SimpleForm ID="SimpleForm2" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                                ShowHeader="False" LabelAlign="Right" LabelWidth="200px">
                                <Items>
                                    <ext:DropDownList runat="server" ID="ddlGenMinuteStart" Label="起始于第(*)分钟" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:DropDownList runat="server" ID="ddlGenMinuteEnd" Label="结束于第(*)分钟" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:TextBox AutoPostBack="true" OnTextChanged="Exp_Changed" runat="server" ID="txbGenMinute"
                                        Label="每隔(*)分钟循环一次" ShowLabel="true" Width="100px" Text="1">
                                    </ext:TextBox>
                                </Items>
                            </ext:SimpleForm>
                        </Items>
                    </ext:Tab>
                    <ext:Tab ID="Tab1" Title="按小时" runat="server" EnableBackgroundColor="true" BodyPadding="5px">
                        <Items>
                            <ext:SimpleForm ID="SimpleForm3" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                                ShowHeader="False" LabelAlign="Right" LabelWidth="200px">
                                <Items>
                                    <ext:DropDownList runat="server" ID="ddlGenHourStart" Label="起始于第(*)小时" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:DropDownList runat="server" ID="ddlGenHourEnd" Label="结束于第(*)小时" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:TextBox AutoPostBack="true" OnTextChanged="Exp_Changed" runat="server" ID="txbGenHour"
                                        Label="每隔(*)小时循环一次" ShowLabel="true" Width="100px" Text="1">
                                    </ext:TextBox>
                                </Items>
                            </ext:SimpleForm>
                        </Items>
                    </ext:Tab>
                    <ext:Tab ID="Tab2" Title="按天" runat="server" EnableBackgroundColor="true" BodyPadding="5px">
                        <Items>
                            <ext:SimpleForm ID="SimpleForm4" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                                ShowHeader="False" LabelAlign="Right" LabelWidth="200px">
                                <Items>
                                    <ext:DropDownList runat="server" ID="ddlGenDayStart" Label="起始于第(*)天" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:DropDownList runat="server" ID="ddlGenDayEnd" Label="结束于第(*)天" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:TextBox AutoPostBack="true" OnTextChanged="Exp_Changed" runat="server" ID="txbGenDay"
                                        Label="每隔(*)天循环一次" ShowLabel="true" Width="100px" Text="1">
                                    </ext:TextBox>
                                </Items>
                            </ext:SimpleForm>
                        </Items>
                    </ext:Tab>
                    <ext:Tab ID="Tab3" Title="按月" runat="server" EnableBackgroundColor="true" BodyPadding="5px">
                        <Items>
                            <ext:SimpleForm ID="SimpleForm5" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                                ShowHeader="False" LabelAlign="Right" LabelWidth="200px">
                                <Items>
                                    <ext:DropDownList runat="server" ID="ddlGenMonthStart" Label="起始于第(*)月" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:DropDownList runat="server" ID="ddlGenMonthEnd" Label="结束于第(*)月" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:TextBox AutoPostBack="true" OnTextChanged="Exp_Changed" runat="server" ID="txbGenMonth"
                                        Label="每隔(*)月循环一次" ShowLabel="true" Width="100px" Text="1">
                                    </ext:TextBox>
                                </Items>
                            </ext:SimpleForm>
                        </Items>
                    </ext:Tab>
                    <ext:Tab ID="Tab4" Title="按星期" runat="server" EnableBackgroundColor="true" BodyPadding="5px">
                        <Items>
                            <ext:SimpleForm ID="SimpleForm6" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                                ShowHeader="False" LabelAlign="Right" LabelWidth="200px">
                                <Items>
                                    <ext:DropDownList runat="server" ID="ddlGenWeekStart" Label="起始于" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                    <ext:DropDownList runat="server" ID="ddlGenWeekEnd" Label="结束于" AutoPostBack="true"
                                        OnSelectedIndexChanged="Exp_Changed" Width="100px">
                                    </ext:DropDownList>
                                </Items>
                            </ext:SimpleForm>
                        </Items>
                    </ext:Tab>
                </Tabs>
            </ext:TabStrip>
            <ext:Form ID="Form2" runat="server" EnableBackgroundColor="true" ShowBorder="true"
                ShowHeader="true" LabelAlign="Right" Title="表达式" LabelWidth="50px" BodyPadding="5px">
                <Rows>
                    <ext:FormRow ColumnWidths="150px 150px 150px 150px 150px 150px">
                        <Items>
                            <ext:TextBox runat="server" ID="txbExpSeconds" Label="秒" Text="0">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="txbExpMinutes" Label="分" Text="0/5">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="txbExpHours" Label="时" Text="*">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="txbExpDays" Label="天" Text="*">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="txbExpMonths" Label="月" Text="*">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="txbExpDayOfWeek" Label="星期" Text="*">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow >
                        <Items>
                            <ext:Button runat="server" ID="btnGetExp" Text="更新条件" OnClick="Exp_Changed" />
                            <ext:Button runat="server" ID="btnMakeExp" Text="生成表达式" OnClick="btnMakeExp_Click" />
                        </Items>
                    </ext:FormRow>
                     <ext:FormRow >
                        <Items>
                           <ext:TextBox runat="server" ID="txbexp" Label="星期"  >
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
    </ext:Panel>
    <ext:SimpleForm ID="SimpleForm1" runat="server" EnableBackgroundColor="true" ShowBorder="False"
        ShowHeader="False" LabelAlign="Right">
        <Items>
            <ext:Button runat="server" ID="btnok" Text="确定" ValidateForms="SimpleForm1" />
        </Items>
    </ext:SimpleForm>
    </form>
</body>
</html>
